Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decode URI when creating bread crumbs, to be friendly to Chinese. #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fhzheng
Copy link

@fhzheng fhzheng commented Apr 24, 2018

When I am using the newest version fancyindex in a Chinese context, there're garbled text in the bread crumbs, added decodeURI() to solve this problem.
Also, decoded URI to be shown on the browser tab.

@@ -27,7 +27,7 @@ if (!!(window.history && history.pushState)) {
})();

var updateCrumbs = function() {
window.document.title = window.location.pathname;
window.document.title = decodeURI(window.location.pathname);
setTimeout(function () {
var loc = window.location.pathname;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here should also use decodeURI

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean line 32
var loc = decodeURI(window.location.pathname);

@wodemess
Copy link

footer.html script line 5 var loc = decodeURI(window.location.pathname); Decode URI when creating bread crumbs, to be friendly to Chinese.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants